import React from 'react'

export default class child extends React.Component{

    constructor(props){
        super(props)

    }
    componentWillMount(){
        console.log('will mount')
    }

    componentDidMount(){
        console.log('did mount')
    }
    shouldComponentUpdate(){
        console.log("show update")
        return true
    }

    componentWillReceiveProps(newporps){
        console.log('receiveprop' , newporps.name)
    }
   
    componentWillUpdate(){
        console.log('will update')
    }

    componentDidUpdate(){
        console.log('did update')
    }



    render(){
        return <div>
            {this.props.name}
        </div>

    }







}